<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ include file="/WEB-INF/jsp/commons/taglibs.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>E-天下商旅-后台管理</title>
<link href="${ctx}/resources/css/page_member.css" rel="stylesheet" type="text/css">


<%-- script src="${ctx}/resources/script/jquery-validation-1.9.0/jquery.validate.messages.js" type="text/javascript"></script> --%>

</head>

<body>

<jsp:include page="../commons/header.jsp" >
     <jsp:param name="currentMenu" value="menu3"/>
</jsp:include>



<div class="main_box">
<div class="main cf">

	<jsp:include page="../commons/left.jsp"></jsp:include>
	<div class="right">
		<div class="right_box">
			<div class="title"><span><a href="#">新增旅游线路</a></span></div>
			<div class="content cf">
				<div class="reg_box">					
					<form  action="${ctx}/travelLine/backstage/saveTravelLineAdd" method="post" name="travelLineForm"  id="travelLineForm" >
                        <div>
							<label><i>* </i>线路名称</label>
                            <input type="text" class="input" name="lineName"  /><span ></span>                          
                        </div>
                        <div>
							<label><i>* </i>线路链接</label>
                            <input type="text" class="input" name="lineLink"  /><span></span>
                        </div>  
                        <div>
                             <label><i>* </i>线路类型</label>
                             <select id="" class="select" name="typeLabel">
							    <c:forEach items="${travelLineTypes }" var="type">
								<option  value="${type.typeLabel }"> ${type.typeName } </option>
								</c:forEach>
							</select>
						</div>
                        <div>
							<label><i>* </i>出发地点</label>
                            <input type="text"  class="input" name="departureCity" id="departureCity" /><span></span>
                        </div>
                        <div>
							<label><i>* </i>发布单位</label>
                            <input type="text" class="input" name="releaseUnit"  /><span></span>
                        </div>
                        <div>
							<label><i>* </i>市场价格</label>
                            <input type="text" class="input" name="price"  /><span></span>
                        </div> 
                        <div>
							<label><i>* </i>是否可以报名</label>                          
							<input  type="radio" checked="checked" value="0" name="isUse">
							停止报名
							<input  type="radio" value="1" name="isUse">
							可以报名<span></span>                       
                        </div> 
                        <div>
							<label><i>* </i>VIP会员价格</label>
                            <input type="text" class="input" name="vipPrice"  /><span></span>
                        </div>                                             
                        <div>
 							<label>&nbsp;</label>
							<input type="submit" class="submit btn_orange" value="添加线路" />
                        </div>
					</form>
				</div>
			</div>
		</div>
	</div>
		
</div>
</div>

<jsp:include page="../commons/footer.jsp"></jsp:include>

<script src="${ctx}/resources/script/validate/jquery-1.4.min.js" type="text/javascript"></script>
<script src="${ctx}/resources/script/common.js"></script>
<script type="text/javascript" src="${ctx}/resources/script/validate/jquery.validate.js"></script>
<script type="text/javascript" src="${ctx}/resources/script/validate/jquery.metadata.js"></script>
<script type="text/javascript" src="${ctx}/resources/script/validate/additional-methods.js" charset="utf-8"></script>
<script type="text/javascript" src="${ctx}/resources/script/validate/messages_cn.js" charset="utf-8"></script>
<script>


/*$(function() {			
	   $("#registerForm").validate({
			rules : {
				name : {
					required : true,
					rangelength:[2,20]
				},
				idcard : {
					required : true,
					isIdCardNo: true
				},
				username:{
					required : true,
					username:true,
					rangelength:[2,20],
					remote:{
						url: "${ctx}/memberBI/isCheckUsername", //后台处理程序    
				        type:"post",
				        dataType: "json",       				 //接受数据格式      
				        data:  {                     			 //要传递的数据   
				        	username: function() {   
				        				return $("#username").val();   
				        	  		  }		  
				        } 
					}
				},
				pwd:{
					required : true,
					rangelength:[6,20]
				},
				commendUsername:{
					required : true,
					remote:{
						url: "${ctx}/memberBI/isCheckCUsername", //后台处理程序    
				        type:"post",
				        dataType: "json",       				 //接受数据格式      
				        data:  {                     			 //要传递的数据   
				        	cUsername: function() {   
				        				return $("#commendUsername").val();   
				        	  		  }		  
				        } 
					}
				},
				parentUsername:{
					required : true
				},
				agree:{
					required : true
				}
				
				
			},
			errorPlacement : function(error, element) {
				error.appendTo(element.next("span"));
			},
			messages : {				  
				name : {
					required : "请填写真实姓名，注册后不能修改",
					rangelength:"姓名长度2-20位"
				},
				idcard:{
					required : "证件号不能够为空",
					isIdCardNo:"请输入正确的身份证号"
				},
				username:{
					required : "用户名不能够为空",
					rangelength:"用户名长度为2-20位",
					remote:"用户名已存在"
				},
				pwd:{
					required : "密码不能够为空",
					rangelength:"密码长度为6-20位"
				},
				commendUsername:{
					required : "推荐人员不能够为空",
					remote:"推荐人员不存在"
				},
				parentUsername:{
					required : "服务人员不能够为空"
				},
				agree:{
					required : "请先阅读服务协议"
				}
			}
		});
	});*/

</script>
</body>
</html>

